home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1995 March / Macworld CD-ROM (March 1995).cdr / Updaters / AppMaker 1.5.2->1.5.4 / Libraries / THINK / AMClassLibC / CAMEditText.cp < prev    next >
Encoding:
Text File  |  1991-08-25  |  1.1 KB  |  37 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CAMEditText.c
  3.  
  4.                             The AMEditText Class
  5.                             
  6.     Like the EditText class that it overrides, except that font, size and
  7.     style can be set from an 'AETx' resource.
  8.         
  9.     SUPERCLASS = CEditText
  10.     
  11.     Copyright © 1991 Bowers Development Corporation. All rights reserved.
  12.  
  13.  ******************************************************************************/
  14.  
  15. #include "CAMEditText.h"
  16.  
  17. /******************************************************************************
  18.  IViewTemp
  19.  
  20.         Initialize an AMStyledText object using a template
  21.  ******************************************************************************/
  22.  
  23. void    CAMEditText::IViewTemp      (CView            *anEnclosure,
  24.                                   CBureaucrat    *aSupervisor,
  25.                                   Ptr            viewData)
  26. {
  27.     register         AMEditTextTempP        p;
  28.     
  29.     p = (AMEditTextTempP) viewData;    /* Initialize superclass            */
  30.     inherited::IViewTemp (anEnclosure, aSupervisor, (Ptr) &p->sEditTextTemp);
  31.     AMSetFontSizeStyle (this, &p->typeStyle);
  32.     AMSetTextID (this, p->TEXTid);        /* go get the TEXT resource, if there is one. */    
  33.  
  34. }    /* IViewTemp */
  35.         
  36. /* CAMEditText */
  37.